package com.fpt.edu.vn.h2tv.dao.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbPaymentMethod entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_payment_method", catalog = "bookdb")
public class TbPaymentMethod implements java.io.Serializable {

	// Fields

	private Short paymentmethodid;
	private String paymentmethod;

	// Constructors

	/** default constructor */
	public TbPaymentMethod() {
	}

	/** full constructor */
	public TbPaymentMethod(Short paymentmethodid, String paymentmethod) {
		this.paymentmethodid = paymentmethodid;
		this.paymentmethod = paymentmethod;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "PAYMENTMETHODID", unique = true, nullable = false)
	public Short getPaymentmethodid() {
		return this.paymentmethodid;
	}

	public void setPaymentmethodid(Short paymentmethodid) {
		this.paymentmethodid = paymentmethodid;
	}

	@Column(name = "PAYMENTMETHOD", nullable = false)
	public String getPaymentmethod() {
		return this.paymentmethod;
	}

	public void setPaymentmethod(String paymentmethod) {
		this.paymentmethod = paymentmethod;
	}

}